
<%@ page import="sige.Professor" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'professor.label', default: 'Professor')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>		
        <ul class="breadcrumb">
            <li>
                <a href="${createLink(uri: '/')}">
                  <i class="icon-home"></i>
                  <g:message code="default.home.label"/>
                </a>
                <span class="divider"> . </span>
            </li>
            <li>
                <g:link action="list">
                    <i class="icon-list"></i>
                    <g:message code="default.list.label" args="[entityName]" />
                </g:link>
                <span class="divider"> . </span>
            </li>
            <li>
                <g:link class="create" action="create">
                    <i class="icon-file"></i>
                    <g:message code="default.new.label" args="[entityName]" />
                </g:link>
            </li>
        </ul>
        <div id="show-professor" class="content scaffold-show" role="main">
            <center>
              <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            </center>
            <g:if test="${flash.message}">
              <div class="alert alert-info">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                ${flash.message}
              </div>
            </g:if>
            <div class="span8 offset3">
                      
		        <div class="well">
		
			        <g:if test="${professorInstance?.nome}">
			        <div class="control-group">
				        <span class="control-label" for="nome">
                            <b><g:message code="professor.nome.label" default="Nome" /></b>
                        </span>
                                      
				        <span class="controls" aria-labelledby="nome-label">
                            <g:fieldValue bean="${professorInstance}" field="nome"/>
                        </span>
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.email}">
			        <div class="control-group">
				        <span class="controls-label" for="email">
                               <b><g:message code="professor.email.label" default="Email" /></b>
                        </span>
				
				        <span class="controls" aria-labelledby="email-label">
				            <g:fieldValue bean="${professorInstance}" field="email"/>
				        </span>
				
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.usuario}">
			        <div class="control-group">
                      <span class="controls-label">
                        <b><g:message code="professor.usuario.label" default="Usuario" /></b>
                      </span>
                      <span class="controls">
                        <g:link controller="usuario" action="show" id="${professorInstance?.usuario?.id}">${professorInstance?.usuario?.encodeAsHTML()}</g:link>
                      </span>
				
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.cpf}">
			        <div class="control-group">
				        <span id="cpf-label" class="control-label">
				            <b><g:message code="professor.cpf.label" default="CPF" /></b></span>
				
				        <span class="controlscontrolsabelledby="cpf-label">
				            <g:fieldValue bean="${professorInstance}" field="cpf"/></span>
				
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.rg}">
			        <div class="control-group">
				        <span id="rg-label" >
				            <b><g:message code="professor.rg.label" default="Rg" /></b></span>
				
				        <span class="controls" aria-controlsby="rg-label">
				            <g:fieldValue bean="${professorInstance}" field="rg"/></span>
			
				        <span id="orgaoExpedidor-label">
				            <b><g:message code="professor.orgaoExpedidor.label" default="Orgao Expedidor" /></b></span>
				
				        <span class="controls" ariacontrolsdby="orgaoExpedidor-label">
				            <g:fieldValue bean="${professorInstance}" field="orgaoExpedidor"/></span>
				
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.dataDeNascimento}">
			        <div class="control-group">
                      <span class="control-label">
                        <b><g:message code="professor.dataDeNascimento.label" default="Data De Nascimento" /></b>
                      </span>
                      <span class="controls">
                        <g:formatDate date="${professorInstance?.dataDeNascimento}" />
                      </span>
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.estadoCivil}">
			        <div class="control-group">
                        <span class="control-label">
                            <b><g:message code="professor.estadoCivil.label" default="Estado Civil" /></b>
                        </span>
                        <span class="concontrols">
                            <g:fieldValue bean="${professorInstance}" field="estadoCivil"/>
                        </span3>
				
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.celular}">
			        <div class="control-group">
                        <span class="control-label">
                            <b><g:message code="professor.celular.label" default="Celular" /></b>
                        </span>
                        <span class="controls">
                            <g:fieldValue bean="${professorInstance}" field="celular"/>
                        </span>	
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.celularSecundario}">
			        <div class="control-group">
                        <span class="control-label">
                            <b><g:message code="professor.celularSecundario.label" default="Celular Secundario" /></b></span>
                        <span class="controls">
                            <g:fieldValue bean="${professorInstance}" field="celularSecundario"/></span>	
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.cidade}">
			        <div class="control-group">
				        <span id="cidade-label" class="controls-label">
				            <b><g:message code="professor.cidade.label" default="Cidade" /></b></span>
				
				        <span class="controlcontrolslabelledby="cidade-label">
				            <g:fieldValue bean="${professorInstance}" field="cidade"/></span>
				
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.dataDeAdmissao}">
			        <div class="control-group">
				        <span id="dataDeAdmissao-label" class="control-label">
				            <b><g:message code="professor.dataDeAdmissao.label" default="Data De Admissão" /></b></span>
				
				        <span class="controls"controlsbelledby="dataDeAdmissao-label">
				            <g:formatDate date="${professorInstance?.dataDeAdmissao}" /></span>
				
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.endereco}">
			        <div class="control-group">
				        <span id="endereco-label" class="control-label">
				            <b><g:message code="professor.endereco.label" default="Endereco" /></b></span>
				
					        <span class="controls" controlselledby="endereco-label">
					            <g:fieldValue bean="${professorInstance}" field="endereco"/></span>
				
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.escolaridade}">
			        <div class="control-group">
				        <span id="escolaridade-label">
				            <b><g:message code="professor.escolaridade.label" default="Escolaridade" /></b></span>
				
				        <span class="controls" acontrolslledby="escolaridade-label">
				            <g:fieldValue bean="${professorInstance}" field="escolaridade"/></span>
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.estado}">
			        <div class="control-group">
				        <span id="estado-label" class="control-label">
				            <b><g:message code="professor.estado.label" default="Estado" /></b></span>
				
				        <span class="controls" arcontrolsledby="estado-label">
				            <g:fieldValue bean="${professorInstance}" field="estado"/></span>
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.numFilhos}">
			        <div class="control-group">
				        <span id="numFilhos-label" >
				            <b><g:message code="professor.numFilhos.label" default="Num Filhos" /></b></span>
				
				        <span class="controls" aricontrolsedby="numFilhos-label">
				            <g:fieldValue bean="${professorInstance}" field="numFilhos"/></span>
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.salario}">
			        <div class="control-group">
				        <span id="salario-label" >
				            <b><g:message code="professor.salario.label" default="Salario" /></b></span>
				
				        <span class="controls" aria-lcontrolsy="salario-label">
				            <g:fieldValue bean="${professorInstance}" field="salario"/></span>
				
			        </div>
			        </g:if>
		
			        <g:if test="${professorInstance?.telefone}">
			        <div class="control-group">
				        <span id="telefone-label">
				            <b><g:message code="professor.telefone.label" default="Telefone" /></b> </span>
				
				        <span class="controls" aria-lcontrolsy="telefone-label">
				            <g:fieldValue bean="${professorInstance}" field="telefone"/></span>
				
			        </div>
			        </g:if>	
		        </div>
		        <g:form>
			        <fieldset class="form-actions">
				        <g:hiddenField name="id" value="${professorInstance?.id}" />
				        <g:link class="btn btn-warning" action="edit" id="${professorInstance?.id}">
				            <i class="icon-edit icon-white"></i>
				            <g:message code="default.button.edit.label" default="Edit" />
				        </g:link>
				        <a data-toggle="modal" href="#myModal" class="btn btn-danger">
                            <i class="icon-trash icon-white"></i>
                            <g:message code="default.button.delete.label" default="Delete" /> 
                        </a>
			        </fieldset>
			        <!--------MODAL----------->
                    <div class="modal hide" id="myModal">
                        <div class="modal-header">
                            <a class="close" data-dismiss="modal">×</a>
                            <h3><g:message code="default.button.delete.atention.message" default="Atenção!" /></h3>
                        </div>
                        <div class="modal-body">
                            <p><g:message code="default.button.delete.confirm.message" default="Are you sure?" /> </p>
                        </div>
                        <div class="modal-footer">
                            <a class="btn" data-dismiss="modal">
                                <g:message code="default.cancel.label" default="Cancelar" />
                            </a>
                            <g:actionSubmit class="btn btn-danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" />
                        </div>
                    </div>
		        </g:form>
            </div><!--/span8-->
	    </div><!--/show-professor-->
	</body>
</html>
